package jircbot;

/**
 * Used to contain data to start up the irc connection.
 * 
 * @author matt
 */
public class Profile {
	private String nick;
	private String server;
	private int port;
	private String host;
	private String[] startChannels;

	boolean verbose = false;

	/**
	 * <p>Construct</p>
	 *
	 * @param server the address of the server.
	 * @param nick nick of the current user.
	 * @param port port number.
	 * @param host
	 * @param startChannels array of strings containing the channels to join.
	 */
	public Profile(String server, int port, String nick, String host, String[] startChannels)
	{
		setServer(server);
		setNick(nick);
		setPort(port);
		setHost(host);
		setStartChannels(startChannels);
	}

	/**
	 * <p>Construct, minus joining the channels at start.</p>
	 *
	 * @param server address of the server.
	 * @param nick nick to start with.
	 * @param port port number to use.
	 * @param host host name.
	 */
	public Profile(String server, int port, String nick, String host)
	{
		setServer(server);
		setNick(nick);
		setPort(port);
		setHost(host);
	}

	public void setVerbose(boolean verbose)
	{
		this.verbose = verbose;
	}

	public boolean getVerbose()
	{
		return verbose;
	}

	public String getServer()
	{
		return server;
	}

	public String getNick()
	{
		return nick;
	}

	public int getPort()
	{
		return port;
	}

	public String getHost()
	{
		return host;
	}

	public String[] getStartChannels()
	{
		return startChannels;
	}

	private void setServer(String server)
	{
		this.server = server;
	}

	private void setPort(int port)
	{
		this.port = port;
	}

	private void setNick(String nick)
	{
		this.nick = nick;
	}

	private void setHost(String host)
	{
		this.host = host;
	}

	private void setStartChannels(String[] channels)
	{
		this.startChannels = channels;
	}
}
